import { IsMimeType, IsNotEmpty, IsOptional } from "class-validator";
import  {IsImageFile} from "../../validators/isImageFile";

export class CreateBannerDto {
  @IsNotEmpty()
  name: string;

  @IsNotEmpty()
  code: string;

  @IsOptional()
  remake: string;
}


export class CreateBannerDataDto {
  @IsOptional()
  sort?: number;

  @IsOptional()
  title?: string;

  @IsNotEmpty()
  type: string;

  @IsNotEmpty()
  file: string

  @IsOptional()
  url: string;

  @IsNotEmpty()
  code: string
}